PUTS
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
puts, fputs - put a string on a stream
SYNOPSIS
#include <stdio.h>
int puts(const char *s);
int fputs(const char *s, FILE *stream);
DESCRIPTION
puts writes the null-terminated string pointed to by s,
followed by a new-line character, to the standard output
stream stdout.
fputs writes the null-terminated string pointed to by s
to the named output file stream.
Neither function writes the terminating null character.
SEE ALSO
ferror(3),
fopen(3),
fread(3),
printf(3),
putc(3)
RETURN VALUES
These routines return EOF on error.
Otherwise, the number of bytes written is returned.
NOTE
puts appends a new-line character while fputs does not.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- RETURN VALUES
-
- NOTE
-
This document was created by
man2html,
using the manual pages.
Time: 11:14:50 GMT, June 22, 2025